<!--
 * @Author: your name
 * @Date: 2022-01-24 18:25:44
 * @LastEditTime: 2022-01-24 18:28:22
 * @LastEditors: DESKTOP-EH1PJNP
 * @Description: 垂直居中
 * @FilePath: \xxtx_ui-demod:\Qweb\html\html\day04\2-vertical.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>垂直居中</title>
    <style>
        .one{
             background-color: aquamarine;
             color: #fff;
             height: 100px;
             text-align: center;
        }
    </style>
</head>
<body>
    <div class="one">
        hello world!
    </div>
</body>
</html>